# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月19日
"""
from docx import Document
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT #导入段落对齐包


file = Document('./练习/练习4.docx')
pic = file.paragraphs[1].add_run().add_picture('./练习/赵丽颖.jpg')
file.paragraphs[1].alignment = WD_PARAGRAPH_ALIGNMENT.CENTER

file.save('./练习/练习6-结果01.docx')